import { Component, OnInit, Input } from '@angular/core';
import { ModalController } from '@ionic/angular';

@Component({
  selector: 'app-payment-schedule',
  templateUrl: './payment-schedule.page.html',
  styleUrls: ['./payment-schedule.page.scss'],
})
export class PaymentSchedulePage implements OnInit {

  @Input() firstName: string;
  @Input() lastName: string;
  @Input() middleInitial: string;

  initDatas = [
    {
      periods:"24",
      maxAMt:"213",
      minAMt:"32"
    },
    {
      periods:"18",
      maxAMt:"307",
      minAMt:"32"
    },
    {
      periods:"12",
      maxAMt:"448",
      minAMt:"30"
    },
    {
      periods:"6",
      maxAMt:"872",
      minAMt:"33"
    },
    {
      periods:"3",
      maxAMt:"1706",
      minAMt:"34"
    },
    {
      periods:"2",
      maxAMt:"2543",
      minAMt:"40"
    },
  ]
  constructor(
    public modalCtrl: ModalController
  ) { }

  ngOnInit() {
  }

  dismissModal() {
    this.modalCtrl.dismiss({
      'dismissed': true
    });
  }
}

